#include "PrecompiledHeader.h"
#include "ConfigurationPanels.h"

#include <windows.h>

using namespace pxSizerFlags;

Panels::CDVDSettingsPanel::CDVDSettingsPanel( wxWindow* parent ) : BaseSelectorPanel( parent )
{
	m_combo_Drives = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize,
		0, 0, wxCB_READONLY );

	for(int i = 'A'; i <= 'Z'; i++)
	{
		wxString path;
		if(!path.IsEmpty())path.Clear();
		path.Printf(L"%c:", i);

		if(GetDriveType(path.c_str()) == DRIVE_CDROM)
		{
			m_combo_Drives->Append(L"["+path+L"]");
		}
	}

	m_combo_Drives->SetMinSize(
		wxSize(
			max(m_combo_Drives->GetMinSize().GetWidth(), 400),
			m_combo_Drives->GetMinSize().GetHeight()
		)
	);

	*this += m_combo_Drives;
}

void Panels::CDVDSettingsPanel::Apply()
{
}

void Panels::CDVDSettingsPanel::AppStatusEvent_OnSettingsApplied()
{
}

bool Panels::CDVDSettingsPanel::ValidateEnumerationStatus()
{
	return true;
}

void Panels::CDVDSettingsPanel::DoRefresh()
{
}